﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QuakeStats
{
    class KillEntry : LogEntry
    {

        public KillEntry(string line)
            : base(line)
        {

        }

        protected override void ParseLineData(string line)
        {
            string[] splitValues = line.Trim().Split(':');
            string[] killData = splitValues[2].Trim().Split(' ');
            KillerId = killData[0];
            VictimId = killData[1];
            WeaponId = int.Parse(killData[2]);
        }

        public string KillerId { get; set; }
        public string VictimId { get; set; }
        public int WeaponId { get; set; }
    }
}
